<div ref="sideContainer" class="side-container">
    {{ if eq .Title .Site.Title}}
    <a class="a-block nav-head active" href="{{.Site.BaseURL}}">
    {{ else }}
    <a class="a-block nav-head false" href="{{.Site.BaseURL}}">
    {{ end }}
        <div class="nav-title">
            {{.Site.Title}}
        </div>
        {{ with .Site.Params.subtitle }}
        <div class="nav-subtitle">
            {{.}}
        </div>
        {{ end }}
    </a>

    <div class="nav-link-list">
        {{ $current := string .RelPermalink  }}
        {{ range .Site.Menus.main }}
            {{$actived := "false"}}
            {{if eq  $current (.URL)}}
                {{$actived = "active"}}
            {{end}}
            {{ if .HasChildren }}
            <parent name="{{ .Name }}" type="nav-link-item {{$actived}}">
                {{ range .Children }}
                    <li><a href="{{ .URL }}"> {{ .Name }}</a></li>
                {{ end }}
            </parent>
            {{ else }}
            
            <a class="a-block nav-link-item {{ $actived }}" href="{{ .URL }}">
                {{ .Name }}
            </a>
            {{ end }}
        {{ end }}
    </div>

    

    <div class="nav-footer">
        {{partial "copyright.html" .}}
    </div>
    
</div>